/** When your routing table is too long, you can split it into small modules **/
import Layout from '@/layout';

// 路由模块化：活动管理中心路由
const OrderRoutes = [
    {
        hidden: true,
        path: '/order',
        component: Layout,
        redirect: 'list',
        meta: {
            title: '订单列表',
            icon: 'tab'
        },
        children: [
            {
                path: 'list',
                name: 'OrderList',
                component: () => import ('@/views/order-management/partial/list'),
                meta: {
                    title: '订单列表',
                    icon: 'tab'
                }
            }, {
                hidden: true,
                path: 'detail',
                name: 'OrderDetail',
                component: () => import ('@/views/order-management/partial/detail'),
                meta: {
                    title: '订单详情',
                    icon: 'tab',
                    activeMenu: '/order/list',
                    isNotCheckToken: true
                }
            }, {
                path: 'after',
                name: 'AfterSaleList',
                component: () => import ('@/views/order-management/partial/after'),
                meta: {
                    title: '售后订单',
                    icon: 'tab'
                }
            }, {
                hidden: true,
                path: 'afterdetail',
                name: 'AfterSaleDetail',
                component: () => import ('@/views/order-management/partial/afterDetail'),
                meta: {
                    title: '售后单详情',
                    icon: 'tab',
                    activeMenu: '/order/after',
                    isNotCheckToken: true
                }
            }
        ]
    }, {
        hidden: true,
        path: '/settlement',
        component: Layout,
        redirect: '/list',
        meta: {
            title: '结算管理'
        },
        children: [
            {
                path: 'list',
                name: 'SettlementList',
                component: () => import ('@/views/settlement-management/settlement-list/list'),
                meta: {
                    title: '分账记录'
                }
            }
        ]
    }
];

export default OrderRoutes;
